
package com.jf.cloud.supplier.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author zz
 * @date 2021/6/8 19:56
 */
public class SupplierWalletLogSearchDTO {
    private static final long serialVersionUID = 1L;

    @Schema(description = "收支类型 0支出 1收入" )
    private Integer ioType;

    @Schema(description = "金额类型 0 未结算金额 1可提现金额 2冻结金额" )
    private Integer amountType;

    @Schema(description = "原因 0用户支付 1用户确认收货 2 用户退款申请 3 拒绝用户退款申请 4 提现申请 5 提现申请被拒绝" )
    private Integer reason;

    @Schema(description = "订单号" )
    private Long orderId;

    @Schema(description = "退款单号" )
    private Long refundId;

    @Schema(description = "供应商id" )
    private Long supplierId;

    @Schema(description = "供应商名称" )
    private String supplierName;

    @Schema(description = "开始时间" )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Schema(description = "结束时间" )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Schema(description = "供应商id列表，勾选导出" )
    private List<Long> supplierIds;

    @Schema(description = "排序类型 0无 1 正序 2倒序" )
    private Integer sortType;

    public Integer getIoType() {
        return ioType;
    }

    public void setIoType(Integer ioType) {
        this.ioType = ioType;
    }

    public Integer getAmountType() {
        return amountType;
    }

    public void setAmountType(Integer amountType) {
        this.amountType = amountType;
    }

    public Integer getReason() {
        return reason;
    }

    public void setReason(Integer reason) {
        this.reason = reason;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getRefundId() {
        return refundId;
    }

    public void setRefundId(Long refundId) {
        this.refundId = refundId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public List<Long> getSupplierIds() {
        return supplierIds;
    }

    public void setSupplierIds(List<Long> supplierIds) {
        this.supplierIds = supplierIds;
    }

    public Integer getSortType() {
        return sortType;
    }

    public void setSortType(Integer sortType) {
        this.sortType = sortType;
    }

    @Override
    public String toString() {
        return "SupplierWalletLogSearchDTO{" +
                "ioType=" + ioType +
                ", amountType=" + amountType +
                ", reason=" + reason +
                ", orderId=" + orderId +
                ", refundId=" + refundId +
                ", supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", supplierIds=" + supplierIds +
                ", sortType=" + sortType +
                '}';
    }
}
